package springboot.bean;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 
 * 
 */
@Component
public class Status implements Serializable {
    private Integer id;

    private String position;

    private String status;

    private Integer line;

    private Integer column;

    private String delay3;

    private String maxLine;

    public String getMaxLine() {
        return maxLine;
    }

    public void setMaxLine(String maxLine) {
        this.maxLine = maxLine;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getLine() {
        return line;
    }

    public void setLine(Integer line) {
        this.line = line;
    }

    public Integer getColumn() {
        return column;
    }

    public void setColumn(Integer column) {
        this.column = column;
    }

    public String getDelay3() {
        return delay3;
    }

    public void setDelay3(String delay3) {
        this.delay3 = delay3;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Status status1 = (Status) o;
        return Objects.equals(id, status1.id) &&
                Objects.equals(position, status1.position) &&
                Objects.equals(status, status1.status) &&
                Objects.equals(line, status1.line) &&
                Objects.equals(column, status1.column) &&
                Objects.equals(delay3, status1.delay3) &&
                Objects.equals(maxLine, status1.maxLine);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, position, status, line, column, delay3, maxLine);
    }

    @Override
    public String toString() {
        return "Status{" +
                "id=" + id +
                ", position='" + position + '\'' +
                ", status='" + status + '\'' +
                ", line=" + line +
                ", column=" + column +
                ", delay3='" + delay3 + '\'' +
                ", maxLine='" + maxLine + '\'' +
                '}';
    }
}